import { requestClient } from '#/api/request';

export function AddObj(form: any) {
  return requestClient.post(`/gateway/rules/blacklist`, form);
}

export function DelObj(id: string) {
  return requestClient.delete(`/gateway/rules/blacklist/${id}`);
}

export function UpdateObj(form: any) {
  return requestClient.put(`/gateway/rules/blacklist/${form.id}`, form);
}
export function GetPage(query: any) {
  return requestClient.request('/gateway/rules/blacklist', {
    method: 'get',
    params: query,
  });
}
//
// export function GetPage(query: any) {
//   return requestClient.post(`/gateway/rules/blacklist`, {
//     page: { current: query.current, size: query.size },
//     model: {
//       clientId: query?.clientId,
//       clientName: query?.clientName,
//       status: query?.status,
//     },
//   });
// }
